home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / snip1091.arc / UNIX2DOS.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-04  |  293 b   |  18 lines

  1. /*
  2. **  UNIX2DOS.C - Convert Unix-style pathnames to DOS-style
  3. **
  4. **  public domain by Bob Stout
  5. */
  6.  
  7. #include <stddef.h>
  8. #include <string.h>
  9.  
  10. char *unix2dos(char *path)
  11. {
  12.       char *p;
  13.  
  14.       while (NULL != (p = strchr(path, '/')))
  15.             *p = '\\';
  16.       return path;
  17. }
  18.